package com.bacon.gmall.order.client;

import com.bacon.gmall.model.order.OrderInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.HashMap;

/**
 * @author： bacon、
 * @version： 1.0
 * @create： 2021-01-06 16:41
 * @description:
 */
@FeignClient(name = "service-order")
public interface OrderFeignClient {

    @GetMapping("/api/order/auth/trade")
    HashMap<String, Object> trade();

    @GetMapping("/api/order/auth/getOrderById/{orderId}")
    OrderInfo getOrderById(@PathVariable Long orderId);
}
